<?php
/**
 * Created by IntelliJ IDEA.
 * User: XD
 * Date: 2017/8/24
 * Time: 10:24
 */
require ("../app/classes.php");
function getExecSql(){
    $mysqlDirector = new MysqlDirector();
    $myself_mysql = $mysqlDirector->Construct(new MyselfMysql());
    $exesql = new DB($myself_mysql,1);
    return $exesql;
}

function getExecSql2(){
    $mysqlDirector = new MysqlDirector();
    $myself_mysql = $mysqlDirector->Construct(new MyGongShiTest());
    $exesql = new DB($myself_mysql,1);
    return $exesql;
}

$sql = new Sql();
$exesql = getExecSql2();
//$exesql->createDB("test");
//$exesql->executionSql(Sql::CREATE_TABLE);
//exesql->executionSql(Sql::DELETE_TABLE);

$exesql->executionSql("test",$sql->data());



?>